Function Reference

_IsClassname

Check ClassName of the control.

#include <Misc.au3>
_IsClassName($h_hWnd, $s_ClassName)

 

Parameters

$h_hWnd control ID/Handle

 

Return Value

Success: Returns 1
Failure: Returns 0 and sets @error

 

Remarks

None.

 

Related

None.

 

Example


#include <Misc.au3>
Run("Notepad")
WinWaitActive("[CLASS:Notepad]")
$hWnd = WinGetHandle("[LAST]")
If _IsClassName($hWnd,"Notepad") Then
    Msgbox(0,"Classname","Active window is an Notepad classname")
EndIf